package com.atguigu.gmall.seckill.biz;

import com.atguigu.gmall.common.result.ResultCodeEnum;
import com.atguigu.gmall.seckill.vo.SeckillOrderConfirmVo;
import com.atguigu.gmall.seckill.vo.SeckillOrderSubmitVo;

public interface SeckillBizService {

    //生成秒杀码
    String generateSeckillCode(Long skuId);

    //下秒杀单：秒杀开始排队
    void seckillOrder(Long skuId, String code);

    //检查秒杀单状态
    ResultCodeEnum checkOrder(Long skuId);

    //获取秒杀单数据
    SeckillOrderConfirmVo getSeckillOrderInfo(String code);

    //获取秒杀单数据
    Long submitOrder(SeckillOrderSubmitVo submitVo);
}
